﻿using AutoMapper;
using Enter.Dashboard.Api.Dtoes;
using Enter.Dashboard.Api.Dtoes.Responses;
using Enter.Dashboard.Api.Entities;
using Enter.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Enter.Dashboard.Api.Configs
{
    public class AutoMapperConfigs : Profile
    {
        public AutoMapperConfigs()
        {
            CreateMap<Archive, CaseListResponse>()
                .ReverseMap();//.ForAllMembers(opt => opt.DoNotAllowNull())
            CreateMap<ComposeAttribute, ColumnProperty>();


            //CreateMap<DataTablesColumn, DataTablesColumn>()
            //    .ReverseMap();

            //CreateMap<Notice, NoticeModel>()
            //    .ReverseMap();

            //CreateMap<Archive, ArchiveNaturalModel>()
            //    .ReverseMap();
            //CreateMap<Archive, ArchiveNatural>()
            //    .ReverseMap();

            //CreateMap<ArchiveNatural, ArchiveNaturalModel>()
            //    .ReverseMap();

            //CreateMap<Employ, EmployModel>()
            //    .ForMember(dest => dest.RoleName, opt => opt.MapFrom(src => src.Role.RoleName))
            //    .ReverseMap();
        }
    }
}
